//
//  YCDatePickerView.h
//  DemoPickerView
//
//  Created by tangkexiong on 16/3/9.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YCDatePickerView;

#pragma mark - YCDatePickerViewDelegate

@protocol YCDatePickerViewDelegate <NSObject>

@optional
- (void)datePickerViewWillShow:(YCDatePickerView *)pickerView;
- (void)datePickerViewWillDismiss:(YCDatePickerView *)pickerView;
- (void)datePickerView:(YCDatePickerView *)pickerView didSelectDate:(NSDate *)date;

@end

#pragma mark - YCDatePickerView

/**
 *  日期选择器
 */
@interface YCDatePickerView : UIViewController

/// 代理
@property (weak, nonatomic) id<YCDatePickerViewDelegate> myDelegate;

@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIDatePicker *datePickerView;
@property (weak, nonatomic) IBOutlet UINavigationBar *naviBar;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintDlgViewBottom;

+ (instancetype)instanceWithDelegate:(id<YCDatePickerViewDelegate>)delegate;
- (void)show;

@end
